<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台登陆</title>
<script type="text/javascript" src="/js/jquery-1.6.1.js"></script>
</head>
<style type="text/css">
*{margin:0px;padding:0px;}
.loginForm{
	border:1px solid #000;
	margin:auto;
}
</style>
<body>
	<form onsubmit="return checkLogin();" action="<?=self::_getUri('login','index','login',array())?>" method="post">
	<input type="hidden" name="to" value="<?=$to?>" />
	<table class="loginForm" >
		<tr>
			<th>用户名：</th>
			<td><input type="text" name="username" value="" id="username" /></td>
		</tr>
		<tr>
			<th>密码：</th>
			<td><input type="password" name="password" value="" id="password" /></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" value="登录" /></td>
		</tr>
	</table>
	</form>
	<script type="text/javascript">
		function checkLogin(){
			var uname = $.trim($('#username').val());
			var upwd = $.trim($('#password').val());
			if(uname == ''){
				alert('用户名不能为空');
				return false;
			}
			if(upwd == ''){
				alert('密码不能为空');
				return false;
			}
		}
	</script>
</body>
</html>